package com.ita.factory;

import com.ita.service.MenuService;
import com.ita.service.MerchantService;
import com.ita.service.impl.MenuServiceImpl;
import com.ita.service.impl.MerchantServiceImpl;

public class MServiceFactory {

	private static MenuService menuService;
	private static MerchantService merchantService;

	public static MerchantService getMerchantService() {
		if (merchantService == null) {
			merchantService = new MerchantServiceImpl();
		}
		return merchantService;
	}

	public static MenuService getMenuService() {
		if (menuService == null) {
			menuService = new MenuServiceImpl();
		}
		return menuService;
	}

}
